import Vue from 'vue'
import Vuex from 'vuex'
//debugger
Vue.use(Vuex)

export default new Vuex.Store({
  state: {

    userInfo: '',
    token: '',
    goodList: ''


  },
  mutations: {

    setUserInfo: function (e, i) {
      this.state.userInfo = i.userInfo
      this.state.token = i.token

    },
    setGoodList: function (e, i) {
      this.state.goodList = i
    },


  },
  actions: {}
})
